// 无国旗
// 685: "Samoa Western"
// 381: "Yugoslavia"
// 243: "Zaire"

export const nation = {
  id: {
    dialCode: 62,
    name: 'Indonesia',
    code: 'id',
    chinese: 'Indonesia',
  },
  in: { dialCode: 91, name: 'India', code: 'in', chinese: 'भारत' },
  ng: { dialCode: 234, name: 'Nigeria', code: 'ng', chinese: '' },
  br: { dialCode: 55, name: 'Brazil', code: 'br', chinese: 'Brasil' },
  vn: { dialCode: 84, name: 'Vietnam', code: 'vn', chinese: 'Việt Nam' },
  gb: { dialCode: 44, name: 'England', code: 'gb', chinese: 'England' },
  my: { dialCode: 60, name: 'Malaysia', code: 'my', chinese: 'Malaysia' },
  nz: {
    dialCode: 64,
    name: 'New Zealand',
    code: 'nz',
    chinese: 'New Zealand',
  },
  ph: {
    dialCode: 63,
    name: 'Philippines',
    code: 'ph',
    chinese: 'Pilipinas',
  },
  us: { dialCode: 1, name: 'USA', code: 'us', chinese: 'USA' },
  ca: { dialCode: 1, name: 'Canada', code: 'ca', chinese: 'Canada' },
  au: {
    dialCode: 61,
    name: 'Australia',
    code: 'au',
    chinese: 'Australia',
  },
  ao: { dialCode: 244, name: 'Angola', code: 'ao', chinese: '' },
  af: {
    dialCode: 93,
    name: 'Afghanistan',
    code: 'af',
    chinese: 'افغانستان',
  },
  al: { dialCode: 355, name: 'Albania', code: 'al', chinese: 'Shqipëri' },
  dz: { dialCode: 213, name: 'Algeria', code: 'dz', chinese: 'الجزائر' },
  ad: { dialCode: 376, name: 'Andorra', code: 'ad', chinese: '' },
  ai: { dialCode: 1264, name: 'Anguilla', code: 'ai', chinese: '' },
  ag: {
    dialCode: 1268,
    name: 'Antigua and Barbuda',
    code: 'ag',
    chinese: '',
  },
  ar: { dialCode: 54, name: 'Argentina', code: 'ar', chinese: '' },
  am: { dialCode: 374, name: 'Armenia', code: 'am', chinese: 'Հայաստան' },
  ws: { dialCode: 685, name: 'Samoa Western', code: 'ws', chinese: '' },
  at: { dialCode: 43, name: 'Austria', code: 'at', chinese: 'Österreich' },
  az: {
    dialCode: 994,
    name: 'Azerbaijan',
    code: 'az',
    chinese: 'Azərbaycan',
  },
  bs: { dialCode: 1242, name: 'Bahamas', code: 'bs', chinese: '' },
  bh: { dialCode: 973, name: 'Bahrain', code: 'bh', chinese: 'البحرين' },
  bd: {
    dialCode: 880,
    name: 'Bangladesh',
    code: 'bd',
    chinese: 'বাংলাদেশ',
  },
  bb: { dialCode: 1246, name: 'Barbados', code: 'bb', chinese: '' },
  by: { dialCode: 375, name: 'Belarus', code: 'by', chinese: 'Беларусь' },
  be: { dialCode: 32, name: 'Belgium', code: 'be', chinese: 'België' },
  bz: { dialCode: 501, name: 'Belize', code: 'bz', chinese: '' },
  bj: { dialCode: 229, name: 'Benin', code: 'bj', chinese: 'Bénin' },
  bm: { dialCode: 1441, name: 'Bermuda Is.', code: 'bm', chinese: '' },
  bo: { dialCode: 591, name: 'Bolivia', code: 'bo', chinese: '' },
  bw: { dialCode: 267, name: 'Botswana', code: 'bw', chinese: '' },
  bn: { dialCode: 673, name: 'Brunei', code: 'bn', chinese: '' },
  bg: { dialCode: 359, name: 'Bulgaria', code: 'bg', chinese: 'България' },
  bf: { dialCode: 226, name: 'Burkina-faso', code: 'bf', chinese: '' },
  mm: { dialCode: 95, name: 'Burma', code: 'mm', chinese: 'မြန်မာ' },
  bi: { dialCode: 257, name: 'Burundi', code: 'bi', chinese: 'Uburundi' },
  cm: { dialCode: 237, name: 'Cameroon', code: 'cm', chinese: 'Cameroun' },
  cf: {
    dialCode: 236,
    name: 'Central African Republic',
    code: 'cf',
    chinese: 'République centrafricaine',
  },
  td: { dialCode: 235, name: 'Chad', code: 'td', chinese: 'Tchad' },
  cl: { dialCode: 56, name: 'Chile', code: 'cl', chinese: '' },
  co: { dialCode: 57, name: 'Colombia', code: 'co', chinese: '' },
  cg: {
    dialCode: 242,
    name: 'Congo',
    code: 'cg',
    chinese: 'Congo-Brazzaville',
  },
  ck: { dialCode: 682, name: 'Cook Is.', code: 'ck', chinese: '' },
  cr: { dialCode: 506, name: 'Costa Rica', code: 'cr', chinese: '' },
  cu: { dialCode: 53, name: 'Cuba', code: 'cu', chinese: '' },
  cy: { dialCode: 357, name: 'Cyprus', code: 'cy', chinese: 'Κύπρος' },
  cz: {
    dialCode: 420,
    name: 'Czech Republic',
    code: 'cz',
    chinese: 'Česká republika',
  },
  dk: { dialCode: 45, name: 'Denmark', code: 'dk', chinese: 'Danmark' },
  dj: { dialCode: 253, name: 'Djibouti', code: 'dj', chinese: '' },
  do: {
    dialCode: 1890,
    name: 'Dominica Rep.',
    code: 'do',
    chinese: 'República Dominicana',
  },
  ec: { dialCode: 593, name: 'Ecuador', code: 'ec', chinese: '' },
  eg: { dialCode: 20, name: 'Egypt', code: 'eg', chinese: 'مصر' },
  sv: { dialCode: 503, name: 'EI Salvador', code: 'sv', chinese: '' },
  ee: { dialCode: 372, name: 'Estonia', code: 'ee', chinese: 'Eesti' },
  et: { dialCode: 251, name: 'Ethiopia', code: 'et', chinese: '' },
  fj: { dialCode: 679, name: 'Fiji', code: 'fj', chinese: '' },
  fi: { dialCode: 358, name: 'Finland', code: 'fi', chinese: 'Suomi' },
  fr: { dialCode: 33, name: 'France', code: 'fr', chinese: '' },
  gf: {
    dialCode: 594,
    name: 'French Guiana',
    code: 'gf',
    chinese: 'Guyane française',
  },
  ga: { dialCode: 241, name: 'Gabon', code: 'ga', chinese: '' },
  gm: { dialCode: 220, name: 'Gambia', code: 'gm', chinese: '' },
  ge: {
    dialCode: 995,
    name: 'Georgia',
    code: 'ge',
    chinese: 'საქართველო',
  },
  de: {
    dialCode: 49,
    name: 'Germany',
    code: 'de',
    chinese: 'Deutschland',
  },
  gh: { dialCode: 233, name: 'Ghana', code: 'gh', chinese: 'Gaana' },
  gi: { dialCode: 350, name: 'Gibraltar', code: 'gi', chinese: '' },
  gr: { dialCode: 30, name: 'Greece', code: 'gr', chinese: 'Ελλάδα' },
  gd: { dialCode: 1809, name: 'Grenada', code: 'gd', chinese: '' },
  gu: { dialCode: 1671, name: 'Guam', code: 'gu', chinese: '' },
  gt: { dialCode: 502, name: 'Guatemala', code: 'gt', chinese: '' },
  gn: { dialCode: 224, name: 'Guinea', code: 'gn', chinese: 'Guinée' },
  gy: { dialCode: 592, name: 'Guyana', code: 'gy', chinese: '' },
  ht: { dialCode: 509, name: 'Haiti', code: 'ht', chinese: '' },
  hn: { dialCode: 504, name: 'Honduras', code: 'hn', chinese: '' },
  hu: {
    dialCode: 36,
    name: 'Hungary',
    code: 'hu',
    chinese: 'Magyarország',
  },
  is: { dialCode: 354, name: 'Iceland', code: 'is', chinese: 'Ísland' },
  ir: { dialCode: 98, name: 'Iran', code: 'ir', chinese: 'ایران' },
  iq: { dialCode: 964, name: 'Iraq', code: 'iq', chinese: 'العراق' },
  ie: { dialCode: 353, name: 'Ireland', code: 'ie', chinese: '' },
  il: { dialCode: 972, name: 'Israel', code: 'il', chinese: 'ישראל' },
  it: { dialCode: 39, name: 'Italy', code: 'it', chinese: 'Italia' },
  jm: { dialCode: 1876, name: 'Jamaica', code: 'jm', chinese: '' },
  jp: { dialCode: 81, name: 'Japan', code: 'jp', chinese: '日本' },
  jo: { dialCode: 962, name: 'Jordan', code: 'jo', chinese: 'الأردن' },
  kh: {
    dialCode: 855,
    name: 'Kampuchea (Cambodia )',
    code: 'kh',
    chinese: 'កម្ពុជា',
  },
  kz: { dialCode: 7, name: 'Kazakstan', code: 'kz', chinese: 'Казахстан' },
  ke: { dialCode: 254, name: 'Kenya', code: 'ke', chinese: '' },
  kr: { dialCode: 82, name: 'Korea', code: 'kr', chinese: '대한민국' },
  kw: { dialCode: 965, name: 'Kuwait', code: 'kw', chinese: 'الكويت' },
  kg: {
    dialCode: 331,
    name: 'Kyrgyzstan',
    code: 'kg',
    chinese: 'Кыргызстан',
  },
  la: { dialCode: 856, name: 'Laos', code: 'la', chinese: 'ລາວ' },
  lv: { dialCode: 371, name: 'Latvia', code: 'lv', chinese: 'Latvija' },
  lb: { dialCode: 961, name: 'Lebanon', code: 'lb', chinese: 'لبنان' },
  ls: { dialCode: 266, name: 'Lesotho', code: 'ls', chinese: '' },
  lr: { dialCode: 231, name: 'Liberia', code: 'lr', chinese: '' },
  ly: { dialCode: 218, name: 'Libya', code: 'ly', chinese: 'ليبيا' },
  li: { dialCode: 423, name: 'Liechtenstein', code: 'li', chinese: '' },
  lt: { dialCode: 370, name: 'Lithuania', code: 'lt', chinese: 'Lietuva' },
  lu: { dialCode: 352, name: 'Luxembourg', code: 'lu', chinese: '' },
  mg: {
    dialCode: 261,
    name: 'Madagascar',
    code: 'mg',
    chinese: 'Madagasikara',
  },
  mw: { dialCode: 265, name: 'Malawi', code: 'mw', chinese: '' },
  mv: { dialCode: 960, name: 'Maldives', code: 'mv', chinese: '' },
  ml: { dialCode: 223, name: 'Mali', code: 'ml', chinese: '' },
  mt: { dialCode: 356, name: 'Malta', code: 'mt', chinese: '' },
  mu: { dialCode: 230, name: 'Mauritius', code: 'mu', chinese: 'Moris' },
  mx: { dialCode: 52, name: 'Mexico', code: 'mx', chinese: 'México' },
  md: {
    dialCode: 373,
    name: 'Moldova, Republic of',
    code: 'md',
    chinese: 'Republica Moldova',
  },
  mc: { dialCode: 377, name: 'Monaco', code: 'mc', chinese: '' },
  mn: { dialCode: 976, name: 'Mongolia', code: 'mn', chinese: 'Монгол' },
  ms: { dialCode: 1664, name: 'Montserrat Is', code: 'ms', chinese: '' },
  ma: { dialCode: 212, name: 'Morocco', code: 'ma', chinese: 'المغرب' },
  mz: {
    dialCode: 258,
    name: 'Mozambique',
    code: 'mz',
    chinese: 'Moçambique',
  },
  na: { dialCode: 264, name: 'Namibia', code: 'na', chinese: 'Namibië' },
  nr: { dialCode: 674, name: 'Nauru', code: 'nr', chinese: '' },
  np: { dialCode: 977, name: 'Nepal', code: 'np', chinese: 'नेपाल' },
  nl: {
    dialCode: 31,
    name: 'Netherlands',
    code: 'nl',
    chinese: 'Nederland',
  },
  ni: { dialCode: 505, name: 'Nicaragua', code: 'ni', chinese: '' },
  ne: { dialCode: 227, name: 'Niger', code: 'ne', chinese: 'Nijar' },
  kp: {
    dialCode: 850,
    name: 'North Korea',
    code: 'kp',
    chinese: '조선 민주주의 인민 공화국',
  },
  no: { dialCode: 47, name: 'Norway', code: 'no', chinese: 'Norge' },
  om: { dialCode: 968, name: 'Oman', code: 'om', chinese: 'عُمان' },
  pk: { dialCode: 92, name: 'Pakistan', code: 'pk', chinese: 'پاکستان' },
  pa: { dialCode: 507, name: 'Panama', code: 'pa', chinese: 'Panamá' },
  pg: { dialCode: 675, name: 'Papua New Cuinea', code: 'pg', chinese: '' },
  py: { dialCode: 595, name: 'Paraguay', code: 'py', chinese: '' },
  pe: { dialCode: 51, name: 'Peru', code: 'pe', chinese: 'Perú' },
  pl: { dialCode: 48, name: 'Poland', code: 'pl', chinese: 'Polska' },
  pf: {
    dialCode: 689,
    name: 'French Polynesia',
    code: 'pf',
    chinese: 'Polynésie française',
  },
  pt: { dialCode: 351, name: 'Portugal', code: 'pt', chinese: '' },
  pr: { dialCode: 1787, name: 'Puerto Rico', code: 'pr', chinese: '' },
  qa: { dialCode: 974, name: 'Qatar', code: 'qa', chinese: 'قطر' },
  ro: { dialCode: 40, name: 'Romania', code: 'ro', chinese: 'România' },
  ru: { dialCode: 7, name: 'Russia', code: 'ru', chinese: 'Россия' },
  lc: { dialCode: 1758, name: 'St.Lucia', code: 'lc', chinese: '' },
  vc: { dialCode: 1784, name: 'St.Vincent', code: 'vc', chinese: '' },
  sm: { dialCode: 378, name: 'San Marino', code: 'sm', chinese: '' },
  st: {
    dialCode: 239,
    name: 'Sao Tome and Principe',
    code: 'st',
    chinese: 'São Tomé e Príncipe',
  },
  sa: {
    dialCode: 966,
    name: 'Saudi Arabia',
    code: 'sa',
    chinese: 'المملكة العربية السعودية',
  },
  sn: { dialCode: 221, name: 'Senegal', code: 'sn', chinese: 'Sénégal' },
  sc: { dialCode: 248, name: 'Seychelles', code: 'sc', chinese: '' },
  sl: { dialCode: 232, name: 'Sierra Leone', code: 'sl', chinese: '' },
  sg: { dialCode: 65, name: 'Singapore', code: 'sg', chinese: '' },
  sk: {
    dialCode: 421,
    name: 'Slovakia',
    code: 'sk',
    chinese: 'Slovensko',
  },
  si: {
    dialCode: 386,
    name: 'Slovenia',
    code: 'si',
    chinese: 'Slovenija',
  },
  sb: { dialCode: 677, name: 'Solomon Is', code: 'sb', chinese: '' },
  so: { dialCode: 252, name: 'Somali', code: 'so', chinese: 'Soomaaliya' },
  za: { dialCode: 27, name: 'South Africa', code: 'za', chinese: '' },
  es: { dialCode: 34, name: 'Spain', code: 'es', chinese: 'España' },
  lk: {
    dialCode: 94,
    name: 'Sri Lanka',
    code: 'lk',
    chinese: 'ශ්‍රී ලංකාව',
  },
  sd: { dialCode: 249, name: 'Sudan', code: 'sd', chinese: 'السودان' },
  sr: { dialCode: 597, name: 'Suriname', code: 'sr', chinese: '' },
  sz: { dialCode: 268, name: 'Swaziland', code: 'sz', chinese: '' },
  se: { dialCode: 46, name: 'Sweden', code: 'se', chinese: 'Sverige' },
  ch: {
    dialCode: 41,
    name: 'Switzerland',
    code: 'ch',
    chinese: 'Schweiz',
  },
  sy: { dialCode: 963, name: 'Syria', code: 'sy', chinese: 'سوريا' },
  tj: { dialCode: 992, name: 'Tajikstan', code: 'tj', chinese: '' },
  tz: { dialCode: 255, name: 'Tanzania', code: 'tz', chinese: '' },
  th: { dialCode: 66, name: 'Thailand', code: 'th', chinese: 'ไทย' },
  tg: { dialCode: 228, name: 'Togo', code: 'tg', chinese: '' },
  to: { dialCode: 676, name: 'Tonga', code: 'to', chinese: '' },
  tt: {
    dialCode: 1809,
    name: 'Trinidad and Tobago',
    code: 'tt',
    chinese: '',
  },
  tn: { dialCode: 216, name: 'Tunisia', code: 'tn', chinese: 'تونس' },
  tr: { dialCode: 90, name: 'Turkey', code: 'tr', chinese: 'Türkiye' },
  tm: { dialCode: 993, name: 'Turkmenistan', code: 'tm', chinese: '' },
  ug: { dialCode: 256, name: 'Uganda', code: 'ug', chinese: '' },
  ua: { dialCode: 380, name: 'Ukraine', code: 'ua', chinese: 'Україна' },
  ae: {
    dialCode: 971,
    name: 'United Arab Emirates',
    code: 'ae',
    chinese: 'الإمارات العربية المتحدة',
  },
  uy: { dialCode: 598, name: 'Uruguay', code: 'uy', chinese: '' },
  uz: {
    dialCode: 233,
    name: 'Uzbekistan',
    code: 'uz',
    chinese: 'Oʻzbekiston',
  },
  ve: { dialCode: 58, name: 'Venezuela', code: 've', chinese: '' },
  ye: { dialCode: 967, name: 'Yemen', code: 'ye', chinese: 'اليمن' },
  // 南斯拉夫，已废弃
  // yu: { dialCode: 381, name: 'Yugoslavia', code: 'yu', chinese: '' },
  zw: { dialCode: 263, name: 'Zimbabwe', code: 'zw', chinese: '' },
  // 扎伊尔，已废弃
  // zr: { dialCode: 243, name: 'Zaire', code: 'zr', chinese: '' },
  zm: { dialCode: 260, name: 'Zambia', code: 'zm', chinese: '' },
  ea: { dialCode: 0, name: 'European Union', code: 'ea', chinese: '' },
  eu: { dialCode: 0, name: 'European Union', code: 'eu', chinese: '' },
  cn: { dialCode: 86, name: 'China', code: 'cn', chinese: '中国' },
  hk: { dialCode: 852, name: 'Hongkong', code: 'hk', chinese: '中国香港' },
  mo: { dialCode: 853, name: 'Macao', code: 'mo', chinese: '中國澳門' },
  tw: { dialCode: 886, name: 'Taiwan', code: 'tw', chinese: '中国台灣' },
};

// export const nation = {
//   my: { code: "my", name: "Malaysia", dialCode: 60, chinese: "Malaysia" },
//   in: { code: "in", name: "India (भारत)", dialCode: 91, chinese: "India" },
//   id: { code: "id", name: "Indonesia", dialCode: 62, chinese: "Indonesia" },
//   jp: { code: "jp", name: "Japan (日本)", dialCode: 81, chinese: "Japan" },
//   ru: { code: "ru", name: "Russia (Россия)", dialCode: 7, chinese: "Russia" },
//   ph: { code: "ph", name: "Philippines", dialCode: 63, chinese: "Philippines" },
//   kr: {
//     code: "kr",
//     name: "South Korea (대한민국)",
//     dialCode: 82,
//     chinese: "Korea",
//   },
//   es: { code: "es", name: "Spain (España)", dialCode: 34, chinese: "Spain" },
//   tr: { code: "tr", name: "Turkey (Türkiye)", dialCode: 90, chinese: "Turkey" },
//   us: {
//     code: "us",
//     name: "United States",
//     dialCode: 1,
//     chinese: "United Kingdom",
//   },
//   vn: {
//     code: "vn",
//     name: "Vietnam (Việt Nam)",
//     dialCode: 84,
//     chinese: "Vietnam",
//   },

//   af: {
//     code: "af",
//     name: "Afghanistan (‫افغانستان‬‎)",
//     dialCode: 93,
//     chinese: "Afghanistan",
//   },
//   al: {
//     code: "al",
//     name: "Albania (Shqipëri)",
//     dialCode: 355,
//     chinese: "Albania",
//   },
//   dz: {
//     code: "dz",
//     name: "Algeria (‫الجزائر‬‎)",
//     dialCode: 213,
//     chinese: "Algeria",
//   },
//   as: { code: "as", name: "American Samoa", dialCode: 1684, chinese: "Samoa" },
//   ad: { code: "ad", name: "Andorra", dialCode: 376, chinese: "Andorra" },
//   ao: { code: "ao", name: "Angola", dialCode: 244, chinese: "Angola" },
//   ai: { code: "ai", name: "Anguilla", dialCode: 1264, chinese: "Anguilla" },
//   ag: {
//     code: "ag",
//     name: "Antigua and Barbuda",
//     dialCode: 1268,
//     chinese: "Antigua and Barbuda",
//   },
//   ar: { code: "ar", name: "Argentina", dialCode: 54, chinese: " Argentina" },
//   am: {
//     code: "am",
//     name: "Armenia (Հայաստան)",
//     dialCode: 374,
//     chinese: "Armenia",
//   },
//   aw: { code: "aw", name: "Aruba", dialCode: 297, chinese: "Aruba" },
//   au: { code: "au", name: "Australia", dialCode: 61, chinese: "Australia" },
//   at: {
//     code: "at",
//     name: "Austria (Österreich)",
//     dialCode: 43,
//     chinese: "Austria",
//   },
//   az: {
//     code: "az",
//     name: "Azerbaijan (Azərbaycan)",
//     dialCode: 994,
//     chinese: "Azerbaijan",
//   },
//   bs: { code: "bs", name: "Bahamas", dialCode: 1242, chinese: "Bahamas" },
//   bh: {
//     code: "bh",
//     name: "Bahrain (‫البحرين‬‎)",
//     dialCode: 973,
//     chinese: "Bahrain",
//   },
//   bd: {
//     code: "bd",
//     name: "Bangladesh (বাংলাদেশ)",
//     dialCode: 880,
//     chinese: "Bangladesh",
//   },
//   bb: { code: "bb", name: "Barbados", dialCode: 1246, chinese: "Barbados" },
//   by: {
//     code: "by",
//     name: "Belarus (Беларусь)",
//     dialCode: 375,
//     chinese: "Belarus",
//   },
//   be: {
//     code: "be",
//     name: "Belgium (België)",
//     dialCode: 32,
//     chinese: "Belgium",
//   },
//   bz: { code: "bz", name: "Belize", dialCode: 501, chinese: "Belize" },
//   bj: { code: "bj", name: "Benin (Bénin)", dialCode: 229, chinese: "Benin" },
//   bm: { code: "bm", name: "Bermuda", dialCode: 1441, chinese: "Bermuda" },
//   bt: { code: "bt", name: "Bhutan (འབྲུག)", dialCode: 975, chinese: "Bhutan" },
//   bo: { code: "bo", name: "Bolivia", dialCode: 591, chinese: "Bolivia" },
//   ba: {
//     code: "ba",
//     name: "Bosnia and Herzegovina (Босна и Херцеговина)",
//     dialCode: 387,
//     chinese: "Bosnia and Herzegovina",
//   },
//   bw: { code: "bw", name: "Botswana", dialCode: 267, chinese: "Botswana" },
//   br: { code: "br", name: "Brazil (Brasil)", dialCode: 55, chinese: "Brazil" },
//   io: {
//     code: "io",
//     name: "British Indian Ocean Territory",
//     dialCode: 246,
//     chinese: "British Indian Ocean Territory",
//   },
//   vg: {
//     code: "vg",
//     name: "British Virgin Islands",
//     dialCode: 1284,
//     chinese: "British Virgin Islands",
//   },
//   bn: { code: "bn", name: "Brunei", dialCode: 673, chinese: "Brunei" },
//   bg: {
//     code: "bg",
//     name: "Bulgaria (България)",
//     dialCode: 359,
//     chinese: "Bulgaria",
//   },
//   bf: {
//     code: "bf",
//     name: "Burkina Faso",
//     dialCode: 226,
//     chinese: "Burkina Faso",
//   },
//   bi: {
//     code: "bi",
//     name: "Burundi (Uburundi)",
//     dialCode: 257,
//     chinese: "Burundi",
//   },
//   kh: {
//     code: "kh",
//     name: "Cambodia (កម្ពុជា)",
//     dialCode: 855,
//     chinese: "Cambodia",
//   },
//   cm: {
//     code: "cm",
//     name: "Cameroon (Cameroun)",
//     dialCode: 237,
//     chinese: "Cameroon",
//   },
//   ca: { code: "ca", name: "Canada", dialCode: 1, chinese: "Canada" },
//   cv: {
//     code: "cv",
//     name: "Cape Verde (Kabu Verdi)",
//     dialCode: 238,
//     chinese: "Cape Verde",
//   },
//   bq: {
//     code: "bq",
//     name: "Caribbean Netherlands",
//     dialCode: 599,
//     chinese: "Caribbean Netherlands",
//   },
//   ky: {
//     code: "ky",
//     name: "Cayman Islands",
//     dialCode: 1345,
//     chinese: "Cayman Islands ",
//   },

//   td: { code: "td", name: "Chad (Tchad)", dialCode: 235, chinese: "Chad" },
//   cl: { code: "cl", name: "Chile", dialCode: 56, chinese: "Chile" },
//   cx: {
//     code: "cx",
//     name: "Christmas Island",
//     dialCode: 61,
//     chinese: "Christmas Island",
//   },
//   cc: {
//     code: "cc",
//     name: "Cocos (Keeling) Islands",
//     dialCode: 61,
//     chinese: "Cocos (Keeling) Islands",
//   },
//   co: { code: "co", name: "Colombia", dialCode: 57, chinese: "Colombia" },
//   km: {
//     code: "km",
//     name: "Comoros (‫جزر القمر‬‎)",
//     dialCode: 269,
//     chinese: "Comoros",
//   },

//   ck: {
//     code: "ck",
//     name: "Cook Islands",
//     dialCode: 682,
//     chinese: "Cook Islands",
//   },
//   cr: { code: "cr", name: "Costa Rica", dialCode: 506, chinese: "Costa Rica" },
//   ci: {
//     code: "ci",
//     name: "Côte d’Ivoire",
//     dialCode: 225,
//     chinese: "Côte d’Ivoire",
//   },
//   hr: {
//     code: "hr",
//     name: "Croatia (Hrvatska)",
//     dialCode: 385,
//     chinese: "Croatia (Hrvatska)",
//   },
//   cu: { code: "cu", name: "Cuba", dialCode: 53, chinese: "Cuba" },
//   cw: { code: "cw", name: "Curaçao", dialCode: 599, chinese: "Curaçao" },
//   cy: { code: "cy", name: "Cyprus (Κύπρος)", dialCode: 357, chinese: "Cyprus" },
//   cz: {
//     code: "cz",
//     name: "Czech Republic (Česká republika)",
//     dialCode: 420,
//     chinese: "Czech Republic",
//   },
//   dk: {
//     code: "dk",
//     name: "Denmark (Danmark)",
//     dialCode: 45,
//     chinese: "Denmark",
//   },
//   dj: { code: "dj", name: "Djibouti", dialCode: 253, chinese: "Djibouti" },
//   dm: { code: "dm", name: "Dominica", dialCode: 1767, chinese: "Dominica" },
//   do: {
//     code: "do",
//     name: "Dominican Republic (República Dominicana)",
//     dialCode: 1,
//     chinese: "Dominican Republic",
//   },
//   ec: { code: "ec", name: "Ecuador", dialCode: 593, chinese: "Ecuador" },
//   eg: { code: "eg", name: "Egypt (‫مصر‬‎)", dialCode: 20, chinese: "Egypt" },
//   sv: {
//     code: "sv",
//     name: "El Salvador",
//     dialCode: 503,
//     chinese: "El Salvador",
//   },
//   gq: {
//     code: "gq",
//     name: "Equatorial Guinea (Guinea Ecuatorial)",
//     dialCode: 240,
//     chinese: "Equatorial Guinea",
//   },
//   er: { code: "er", name: "Eritrea", dialCode: 291, chinese: "Eritrea" },
//   cn: { code: "cn", name: "China (中国)", dialCode: 86, chinese: "China" },
//   ee: {
//     code: "ee",
//     name: "Estonia (Eesti)",
//     dialCode: 372,
//     chinese: "Estonia",
//   },
//   et: { code: "et", name: "Ethiopia", dialCode: 251, chinese: "Ethiopia" },
//   fk: {
//     code: "fk",
//     name: "Falkland Islands (Islas Malvinas)",
//     dialCode: 500,
//     chinese: "Falkland Islands",
//   },
//   fo: {
//     code: "fo",
//     name: "Faroe Islands (Føroyar)",
//     dialCode: 298,
//     chinese: "Faroe Islands",
//   },
//   fj: { code: "fj", name: "Fiji", dialCode: 679, chinese: "Fiji" },
//   fi: {
//     code: "fi",
//     name: "Finland (Suomi)",
//     dialCode: 358,
//     chinese: "Finland",
//   },
//   fr: { code: "fr", name: "France", dialCode: 33, chinese: "France" },
//   gf: {
//     code: "gf",
//     name: "French Guiana (Guyane française)",
//     dialCode: 594,
//     chinese: "French Guiana ",
//   },
// };

// 通过 dialCode 获取国家信息
export const getNationByDialCode = (dialCode: number) => {
  const nationList = Object.values(nation);
  return nationList.find(
    (item) => item.dialCode.toString() === dialCode.toString()
  );
};

export default nation;
